Set TTS to Play Specified Prompted Sound

  • Function:

    magicbox.set_tts_tone(port, index)
    
  • Description: set text-to-speech modules to play specified prompted sound

  • Required parameter:

    • port: controller port (the value is 2)
    • index: prompted sound index. data type: int, range: 1~25
  • Return:
    • True: The command has been finished.
    • False: The command has not been finished.
  • Example

    magicbox.set_tts_tone(port=2, index=1)
    

    Set the text-to-speech module connected to Port 2 of controller to No.1 prompted sound.

results matching ""

    No results matching ""